/**
 * 功能描述 报名登记点击收费跳转
 */
define(function (require, exports, module) {
	var queryChargeDataSvc = require("../store/queryChargeDataSvc");
	var aw = require("ajaxwrapper");
    var business = {
        start: function (params, widget) {
        	aw.ajax({
        		url : "api/signupcharge/queryplanitembypk",
        		data : {
        			pkPlanItem : params.data.pkPlanItem,
        			pkServicePoint : params.pkServicePoint
        		},
        		dataType : "json",
        		success : function(datas){
        			widget.show([".J-form", ".J-editgrid"]).hide(".J-grid");
					widget.get("subnav").show(["save"]).hide(["startDate", "destination", "status", "servicePoint", "cancel"]);
					widget.get("form").setData(datas[0]);
					queryChargeDataSvc.queryChargeData(datas[0], widget);
        		}
        	})
        }
    };
    
    module.exports = business;
});
